var x = document.getElementsByTagName("META");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
  txt = txt + "Content of "+(i+1)+". meta tag: "+x[i].content+"<br>";
}